import { uploadType } from '@/utils/util'

export const ApprovelFormConfig = {
	inline: false,
	showBtn: true,
	labelPosition: 'top',
	labelWidth: '120px',
	submitBtnText: '提交申诉',
	column: [
		{
			label: '申诉说明',
			prop: 'appealDeclare',
			maxlength: '140',
			showWordLimit: true,
			type: 'textarea',
			span: 24,
		},
		{
			label: '申诉材料',
			prop: 'appealMaterial',
			type: 'upload',
			fileType: uploadType.fileMetaType,
			listType: 'text',
			labelPosition: 'top',
			showFileList: true,
			limit: 4,
			multiple: true,
			span: 24,
		},
	],
}

export const rechangeConfig = {
	label: '变更材料',
	prop: 'dp_service_object_other',
	inline: false,
	showBtn: true,
	labelPosition: 'left',
	submitBtnText: '确认并提交',
	backBtnText: '返回',
	column: [
		{
			label: '情况说明',
			prop: 'changeDescription',
			type: 'textarea',
			maxlength: '140',
			rows: 2,
			showWordLimit: true,
			span: 24,
		},
		{
			label: '证明材料',
			prop: 'changeMaterials',
			type: 'upload',
			fileType: uploadType.fileMetaType,
			listType: 'text',
			labelPosition: 'top',
			showFileList: true,
			limit: 4,
			multiple: true,
			span: 24,
		},
		{
			prop: 'tip',
			type: 'DividerHtml',
			span: 24,
			labelPosition: 'top',
			align: 'center',
			display: false,
		},
	],
}
// 变更数据表格配置
export const changeDataTableConfig = {
	columns: [
		{ label: '户籍地区', prop: 'crAddress' },
		{ label: '证件号码', prop: 'idCard' },
		{ label: '姓名', prop: 'name' },
		{
			label: '操作',
			prop: 'menu',
			fixed: 'right',
		},
	],
}
